#include <iostream>
#include "vectorfunctions.h"

int main()
{
	int n, i, l=0, pmin, pmax;
	int a[80], m[100];
	cout<<"Number : ";
	cin>>n;
	while (n>0){
		a[l]=n%10;
		n= n/10;
		++l;
	}
	mirror(a, l);
	pmin= minofVector(a, l);
	pmax= maxofVector(a, l);
	arrcpy(a, m, l);
	for(i=pmin; i<l-1; i++)
		m[i]=m[i+1];
	cout<<"Max : ";
	printVector(m, l-1); 
	cout<<"\n";
	arrcpy(a, m, l);
	for (i=pmax; i<l-1; i++)
		m[i]=a[i+1];
	cout<<"Min : " ;
	printVector(m, l-1);
	cout<<"\n";
return 0;
}
